
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="renderer" content="webkit" />
<title>主页</title>

    <link rel="stylesheet" type="text/css" href="../../../plugins/bootstrap/3.3.7/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../../../plugins/jquery-easyui/1.8.6/themes/gray/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../../../plugins/jquery-easyui/1.8.6/themes/icon.css" />
    <!-- font-awesome图标字体 -->
    <link rel="stylesheet" href="../../../plugins/font-awesome/css/font-awesome.min.css" />
    
    
    <link rel="stylesheet" type="text/css" href="../../../css/zbootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/zeasyui.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/common.css" />
    
    <script type="text/javascript" src="../../../plugins/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="../../../plugins/jquery-rstorage/1.3.2/jquery.rStorage.min.js"></script>
    <script type="text/javascript" src="../../../plugins/jquery-easyui/1.8.6/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../plugins/json-editor-master/dist/jsoneditor.js"></script>
    
    <script type="text/javascript" src="../../../js/zGlobal.js"></script>
    <script type="text/javascript" src="../../../js/zApi.js"></script>
    <script type="text/javascript" src="../../../js/zUtil.js"></script>
    <script type="text/javascript" src="../../../js/zAlert.js"></script>
    <script type="text/javascript" src="../../../js/zDict.js"></script>
    <script type="text/javascript" src="../../../js/zTable.js"></script>
    <script type="text/javascript" src="../../../js/zDialog.js"></script>
    <script type="text/javascript" src="../../../js/zForm.js"></script>
    
    <![if IE]>

    <![endif]>

</head>
<body onload="noright(document.body);">

  <div class="easyui-layout" data-options="fit:true"> 
   <div class="main-content"> 
    <div id="p-all" class="easyui-layout" data-options="fit:true,border:false," style="border: 0px solid #D8D9E5;"> 
     <div data-options="region:'center',split:false,border:false" style="overflow: hidden;width:50%;border-right:1px solid rgb(210, 208, 208);"> 
       <div style="height: 36px;padding:5px 3px;position: absolute;z-index: 2;right: 2px;">
        <input id="table-toggle" class="easyui-switchbutton" style="" />
       </div> 
      <table id="table-left"></table> 
     </div> 
     <div data-options="region:'east',split:true,border:false" style="overflow: hidden;width:50%;border-left:1px solid rgb(210, 208, 208);"> 
      <table id="table-right"></table> 
     </div> 
    </div> 
   </div> 
  </div>

  <!---分割-------------------------------------------------------------------------------->
  <div id="dlg-add-left" style="display:none;"> 
   <div class="main-content"> 
    <form>
     <div class="row">&nbsp;</div>
     <div class="row padding-right"> 
     <div class="col-sm-6"> 
      <label class="form-lable">所属项目</label> 
      <div class="input-block"> 
        <select class="easyui-combobox" id="projectId" name="projectId" data-options="multiple:false,required:true" style="width:100%;" ></select>
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">所属模块</label> 
      <div class="input-block"> 
        <select class="easyui-combobox" id="moduleId" name="moduleId" data-options="multiple:false,required:true" style="width:100%;" ></select>
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">实体标题</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityTitle" name="entityTitle" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityJavaCode" name="entityJavaCode" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码2</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityJavaFullCode" name="entityJavaFullCode" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">对象类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityType" name="entityType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">备注</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="remarks" name="remarks" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">排序</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="orderNum" name="orderNum" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     </div> 
    </form> 
   </div> 
  </div>


  <div id="dlg-edit-left" style="display:none;"> 
   <div class="main-content"> 
    <form>
     <div class="row">&nbsp;</div>
     <div class="row padding-right"> 
     <div class="col-sm-6"> 
      <label class="form-lable">实体对象主键ID</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityId" name="entityId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">所属项目</label> 
      <div class="input-block"> 
        <select class="easyui-combobox" id="projectId" name="projectId" data-options="multiple:false,required:true" style="width:100%;" ></select>
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">所属模块</label> 
      <div class="input-block"> 
        <select class="easyui-combobox" id="moduleId" name="moduleId" data-options="multiple:false,required:true" style="width:100%;" ></select>
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">实体标题</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityTitle" name="entityTitle" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityJavaCode" name="entityJavaCode" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码2</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityJavaFullCode" name="entityJavaFullCode" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">对象类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityType" name="entityType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">备注</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="remarks" name="remarks" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">排序</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="orderNum" name="orderNum" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">状态</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="dataStatus" name="dataStatus" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">创建操作员</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="createOprid" name="createOprid" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">创建操作员姓名</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="createName" name="createName" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">创建时间</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="createTm" name="createTm" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">更新操作员</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="lastUpdOprid" name="lastUpdOprid" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">更新操作员姓名</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="lastUpdName" name="lastUpdName" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">更新时间</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="lastUpdTm" name="lastUpdTm" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     </div> 
    </form> 
   </div> 
  </div>

  <div id="dlg-query-left" style="display:none;">
   <div class="main-content">
    <form>
     <div class="row padding-right">
     <div class="col-sm-12"> 
      <label class="form-lable">实体对象主键ID</label> 
      <div class="input-block">
        <input class="easyui-textbox" id="entityId" name="entityId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-12"> 
      <label class="form-lable">所属项目</label> 
      <div class="input-block"> 
        <select class="easyui-combobox" id="projectId" name="projectId" data-options="" style="width:100%;" ></select>
      </div> 
     </div> 
     <div class="col-sm-12"> 
      <label class="form-lable">所属模块</label> 
      <div class="input-block"> 
        <select class="easyui-combobox" id="moduleId" name="moduleId" data-options="" style="width:100%;" ></select>
      </div> 
     </div> 
     <div class="col-sm-12"> 
      <label class="form-lable">实体标题</label> 
      <div class="input-block">
        <input class="easyui-textbox" id="entityTitle" name="entityTitle" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     </div> 
    </form>
   </div>
  </div>
  <!---分割-------------------------------------------------------------------------------->
  <div id="dlg-add-right" style="display:none;">
   <div class="main-content"> 
    <form>
     <div class="row">&nbsp;</div>
     <div class="row padding-right"> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldCode" name="fieldCode" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6 hidden"> 
      <label class="form-lable">所属项目</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="projectId" name="projectId" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6 hidden"> 
      <label class="form-lable">所属模块</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="moduleId" name="moduleId" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">所属实体对象</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityId" name="entityId" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段标题</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldTitle" name="fieldTitle" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldJavaCode" name="fieldJavaCode" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码2</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldJavaCode2" name="fieldJavaCode2" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">是否必填</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="mustFlag" name="mustFlag" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">输入框类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputType" name="inputType" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">输入框默认值</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputVal" name="inputVal" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">输入框字典</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputDict" name="inputDict" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">校验规则(后台)</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="checkBackground" name="checkBackground" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">校验规则(页面)</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="checkPage" name="checkPage" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">最大值</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="maxVal" name="maxVal" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">最小值</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="minVal" name="minVal" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">组件自定配置</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputOptions" name="inputOptions" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">组件原生配置</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputOptions2" name="inputOptions2" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">显示排序</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="pageOrder" name="pageOrder" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">显示标志</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="pageShowFlag" name="pageShowFlag" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">分组编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="groupCode" name="groupCode" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">分组名称</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="groupName" name="groupName" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldType" name="fieldType" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段来源</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldSourceType" name="fieldSourceType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">来源实体主键ID</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fromEntityId" name="fromEntityId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">来源实体字段ID</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fromEntityAttrId" name="fromEntityAttrId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">是否标准类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="standardFlag" name="standardFlag" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JDBC字段类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="jdbcType" name="jdbcType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JAVA字段类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="javaType" name="javaType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JAVA字段类型(全)</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="javaFullType" name="javaFullType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JAVA字段扩展类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="javaVoType" name="javaVoType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">备注</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="remarks" name="remarks" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">排序</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="orderNum" name="orderNum" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     </div> 
    </form> 
   </div> 
  </div>
  
  <div id="dlg-edit-right" style="display:none;">
   <div class="main-content"> 
    <form>
     <div class="row">&nbsp;</div>
     <div class="row padding-right"> 
     <div class="col-sm-6"> 
      <label class="form-lable">实体字段主键ID</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityAttrId" name="entityAttrId" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldCode" name="fieldCode" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6 hidden"> 
      <label class="form-lable">所属项目</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="projectId" name="projectId" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6 hidden"> 
      <label class="form-lable">所属模块</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="moduleId" name="moduleId" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">所属实体对象</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="entityId" name="entityId" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段标题</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldTitle" name="fieldTitle" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldJavaCode" name="fieldJavaCode" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">驼峰编码2</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldJavaCode2" name="fieldJavaCode2" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">是否必填</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="mustFlag" name="mustFlag" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">输入框类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputType" name="inputType" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">输入框默认值</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputVal" name="inputVal" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">输入框字典</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputDict" name="inputDict" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">校验规则(后台)</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="checkBackground" name="checkBackground" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">校验规则(页面)</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="checkPage" name="checkPage" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">最大值</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="maxVal" name="maxVal" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">最小值</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="minVal" name="minVal" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">组件自定配置</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputOptions" name="inputOptions" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">组件原生配置</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="inputOptions2" name="inputOptions2" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">显示排序</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="pageOrder" name="pageOrder" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">显示标志</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="pageShowFlag" name="pageShowFlag" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">分组编码</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="groupCode" name="groupCode" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">分组名称</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="groupName" name="groupName" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldType" name="fieldType" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">字段来源</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fieldSourceType" name="fieldSourceType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">来源实体主键ID</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fromEntityId" name="fromEntityId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">来源实体字段ID</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="fromEntityAttrId" name="fromEntityAttrId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">是否标准类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="standardFlag" name="standardFlag" data-options="required:true" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JDBC字段类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="jdbcType" name="jdbcType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JAVA字段类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="javaType" name="javaType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JAVA字段类型(全)</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="javaFullType" name="javaFullType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">JAVA字段扩展类型</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="javaVoType" name="javaVoType" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">备注</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="remarks" name="remarks" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">排序</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="orderNum" name="orderNum" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">状态</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="dataStatus" name="dataStatus" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">创建操作员</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="createOprid" name="createOprid" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">创建操作员姓名</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="createName" name="createName" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">创建时间</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="createTm" name="createTm" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">更新操作员</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="lastUpdOprid" name="lastUpdOprid" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">更新操作员姓名</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="lastUpdName" name="lastUpdName" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-6"> 
      <label class="form-lable">更新时间</label> 
      <div class="input-block"> 
        <input class="easyui-textbox" id="lastUpdTm" name="lastUpdTm" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     </div> 
    </form> 
   </div> 
  </div>
  
  <div id="dlg-query-right" style="display:none;">
   <div class="main-content">
    <form>
     <div class="row padding-right">
     <div class="col-sm-12"> 
      <label class="form-lable">实体字段主键ID</label> 
      <div class="input-block">
        <input class="easyui-textbox" id="entityAttrId" name="entityAttrId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-12"> 
      <label class="form-lable">实体对象主键ID</label> 
      <div class="input-block">
        <input class="easyui-textbox" id="entityId" name="entityId" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-12"> 
      <label class="form-lable">字段编码</label> 
      <div class="input-block">
        <input class="easyui-textbox" id="fieldCode" name="fieldCode" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     <div class="col-sm-12"> 
      <label class="form-lable">字段标题</label> 
      <div class="input-block">
        <input class="easyui-textbox" id="fieldTitle" name="fieldTitle" data-options="" style="width:100%;" /> 
      </div> 
     </div> 
     </div> 
    </form>
   </div>
  </div>


 <script>
  TableToggleFlag = true;//默认开启联动
  TableSelectFlag = null;//默认未选中
  DictNames = {};
  
  /* --分割------------------------------------------------------------------------------ */
  
  TitleLeft = "实体配置";
  IdDlgAddLeft = "#dlg-add-left";
  IdDlgEditLeft = "#dlg-edit-left";
  IdDlgQueryLeft = "#dlg-query-left";
  IdTableLeft = "#table-left";
  TableHeaderLeftMenu = null;
  
  /* --分割------------------------------------------------------------------------------ */
  
  TitleRight = "实体配置";
  IdDlgAddRight = "#dlg-add-right";
  IdDlgEditRight = "#dlg-edit-right";
  IdDlgQueryRight = "#dlg-query-right";
  IdTableRight = "#table-right";
  TableHeaderRightMenu = null;
  
  zUtil.dictLoadSyncOfAutocode("dict.dataStatus");
  zUtil.dictLoadSyncOfAutocode("ZSELECT_PROJECT,ZSELECT_PROJECT_MODULE,ZSELECT_WEB_COMPONENT");
  $(function(){
    $('#table-toggle').switchbutton({
      checked:true,
      handleText:'联动',
      width:75,
      height:25,
      handleWidth:35,
      onChange:function(checked){
        if(checked){
          TableToggleFlag = true;
          $('#p-all').layout('expand','east');
        }else{
          TableToggleFlag = false;
          $('#p-all').layout('collapse','east');
        }
        $('#p-all .layout-expand.layout-expand-east').addClass('disabled');
      }
    });
    
    /* --分割------------------------------------------------------------------------------ */
    
    var urlLeft = zGlobal["http"] + "/api/autocode/entity/list";
    var buttonsIdxLeft = [0,4];
    var buttonsFuncLeft = [dlgAddLeft,dlgQueryLeft];
    var optionsLeft = {
            queryParams:{},
            url : urlLeft,
            idField: null,
            sortName: 'orderNum',
            columns:[[
                {field: 'entityId', title: '实体对象主键ID', align: 'center', width: 100, hidden:true},
                {field: 'projectId', title: '所属项目', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){return zUtil.dictConvertOfAutocode(value,"ZSELECT_PROJECT")} },
                {field: 'moduleId', title: '所属模块', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){return zUtil.dictConvertOfAutocode(value,"ZSELECT_PROJECT_MODULE")}},
                {field: 'entityTitle', title: '实体标题', align: 'center', width: 100},
                {field: 'entityJavaCode', title: '驼峰编码', align: 'center', width: 100},
                {field: 'entityJavaFullCode', title: '驼峰编码2', align: 'center', width: 100},
                {field: 'entityType', title: '对象类型', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){ return zUtil.dictConvertOfAutocode(value,"")}},
                {field: 'remarks', title: '备注', align: 'center', width: 100, hidden:true},
                {field: 'orderNum', title: '排序', align: 'center', width: 100},
                {field: 'dataStatus', title: '状态', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){ return zUtil.dictConvertOfAutocode(value,"dict.dataStatus")} },
                {field: 'createName', title: '创建操作员', align: 'center', width: 100},
                {field: ' ', title: ' ', align: 'center', width: 100},
            ]],
            frozenColumns:[[
//              {field:'', title:'', align:'center', checkbox:true},
             {field:'buttonArr', title:'操作', align:'center', width: 60, formatter:buttonsFormatterLeft},
            ]],
            onDblClickRow: function(rowIndex, rowData){
               dlgDtlLeft(rowData);
            },
            onSelect: function(rowIndex, rowData){
              if(TableToggleFlag && rowData['entityId'] != TableSelectFlag){
                TableSelectFlag = rowData['entityId'];
                zUtil.formClear(IdDlgQueryRight + ' form');
                zUtil.val(IdDlgQueryRight + ' #entityId',rowData['entityId']);
                zUtil.readonly(IdDlgQueryRight + ' #entityId');
                zUtil.tableQuery(IdTableRight,{
                  'entityId': rowData['entityId']
                },{url:urlRight});
              }
            },
            onHeaderContextMenu: function(e, field){
              TableHeaderLeftMenu = zUtil.tableHeaderMenu(e,TableHeaderLeftMenu,IdTableLeft);
            },
            onRowContextMenu: function(e, rowIndex, rowData){
              e.preventDefault();
              zUtil.tableSelected(IdTableLeft,rowIndex);
              if(rowData != null){
                dlgEditLeft(rowData);
              }
            },
    };
    zUtil.tableInit(IdTableLeft,optionsLeft,buttonsIdxLeft,buttonsFuncLeft);
    
    
    /* --分割------------------------------------------------------------------------------ */
    var urlRight = zGlobal["http"] + "/api/autocode/entityAttr/list";
    var buttonsIdxRight = [0,4];
    var buttonsFuncRight = [dlgAddRight,dlgQueryRight];
    var optionsRight = {
            queryParams:{},
            url : '',
            idField: null,
            sortName: 'orderNum',
            columns:[[
                {field: 'entityAttrId', title: '实体字段主键ID', align: 'center', width: 100, hidden:true},
                {field: 'entityId', title: '实体对象主键ID', align: 'center', width: 100, hidden:true},
                {field: 'fieldCode', title: '字段编码', align: 'center', width: 100},
                {field: 'fieldTitle', title: '字段标题', align: 'center', width: 100},
                {field: 'fieldJavaCode', title: '驼峰编码', align: 'center', width: 100},
                {field: 'fieldJavaCode2', title: '驼峰编码2', align: 'center', width: 100},
                {field: 'mustFlag', title: '是否必填', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){ return zUtil.dictConvertOfAutocode(value,"dict.dataStatus")}},
                {field: 'inputType', title: '输入框类型', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){ return zUtil.dictConvertOfAutocode(value,"dict.dataStatus")}},
                {field: 'pageOrder', title: '显示排序', align: 'center', width: 100},
                {field: 'pageShowFlag', title: '显示标志', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){ return zUtil.dictConvertOfAutocode(value,"dict.dataStatus")}},
                {field: 'groupCode', title: '分组编码', align: 'center', width: 100},
                {field: 'groupName', title: '分组名称', align: 'center', width: 100},
                {field: 'fieldType', title: '字段类型', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){ return zUtil.dictConvertOfAutocode(value,"dict.dataStatus")}},
                {field: 'orderNum', title: '排序', align: 'center', width: 100},
                {field: 'dataStatus', title: '状态', align: 'center', width: 100, formatter: function(value,rowData,rowIndex){ return zUtil.dictConvertOfAutocode(value,"dict.dataStatus")} },
                {field: 'createName', title: '创建操作员', align: 'center', width: 100},
                {field: ' ', title: ' ', align: 'center', width: 30},
            ]],
            frozenColumns:[[
//              {field:'', title:'', align:'center', checkbox:true},
             {field:'buttonArr', title:'操作', align:'center', width: 60, formatter: buttonsFormatterRight},
            ]],
            onDblClickRow: function(rowIndex, rowData){
               dlgDtlRight(rowData);
            },
            onSelect: function(rowIndex, rowData){
            },
            onHeaderContextMenu: function(e, field){
              TableHeaderRightMenu = zUtil.tableHeaderMenu(e,TableHeaderRightMenu,IdTableRight);
            },
            onRowContextMenu: function(e, rowIndex, rowData){
              e.preventDefault();
              zUtil.tableSelected(IdTableRight,rowIndex);
              if(rowData != null){
                dlgEditRight(rowData);
              }
            },
    };
    zUtil.tableInit(IdTableRight,optionsRight,buttonsIdxRight,buttonsFuncRight);
    
        
        
    /* --分割------------------------------------------------------------------------------ */
    DictNames['ZSELECT_PROJECT'] = 'projectId';
    DictNames['ZSELECT_PROJECT_MODULE'] = 'moduleId';
    DictNames['ZSELECT_WEB_COMPONENT'] = 'inputType';
    DictNames['dict.dataStatus'] = 'dataStatus';
    
    var linkSelsetIds = [IdDlgQueryLeft,IdDlgAddLeft,IdDlgEditLeft,IdDlgQueryRight,IdDlgAddRight,IdDlgEditRight];
    $.each(linkSelsetIds,function(i,item){
        zUtil.selectFill(item,DictNames,zDictAutocode);
        
        var loadDict = function(el,id,type){
            DictNames = {};
            DictNames[type] = id;
            zUtil.selectFill(el, DictNames, zDictAutocode);
        }
        
        zUtil.selectOn(item +" #projectId",function(data){
            if(!data){return;}
            zUtil.selectClear(item +" #moduleId");
            loadDict(item,"moduleId","ZSELECT_PROJECT_MODULE_"+data["value"]);
        });
    });
  });
  
  /* --分割------------------------------------------------------------------------------ */
  
  //TODO
  function buttonsFormatterLeft(value,rowData,rowIndex){
    return '<a href="javascript:void(0)" class="easyui-linkbutton" onclick="dlgDelLeft('+rowIndex+');" title="删除" ><i class="fa fa-trash"> </i></a>';
  }
  //TODO
  function dlgQueryLeft(){
    var dlgSave = function(){
      var params = zUtil.valAll(IdDlgQueryLeft);
      zUtil.tableQuery(IdTableLeft,params);
    };
    var dlgClear = function(){
      zUtil.formClear(IdDlgQueryLeft + ' form');
    };
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgQueryLeft);
    };
    var dlgOptions = {
      title: TitleLeft + '-查询',
    };
    var dlgButtonsIdx = [0,1,2];
    var dlgButtonsFunc =  [dlgSave,dlgClear,dlgClose];
    zUtil.queryInit(IdDlgQueryLeft,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);
    zUtil.dialogOpen(IdDlgQueryLeft);
  };
  //TODO
  function dlgQueryxLeft(){
    //zUtil.dialogOpen(IdDlgQueryxLeft);
  };
  //TODO
  function dlgAddLeft(){
    zUtil.formClear(IdDlgAddLeft + ' form');
    zUtil.readonlyAll(IdDlgAddLeft,false);
    
    var dlgSave = function(){
      if(!zUtil.formCheck(IdDlgAddLeft +' form')){
        return false;
      };
      var params = zUtil.valAll(IdDlgAddLeft);
      var reqData = {reqData: params};
      var result = zUtil.ajaxPostSync(zGlobal["http"] + "/api/autocode/entity/add", reqData);
      if(zCode["GLOBAL_SUCCESS"] == zUtil.getVal(result,zConst["busCode"])){
        var params = zUtil.valAll(IdDlgQueryLeft);
        zUtil.tableQuery(IdTableLeft,params);
        zUtil.dialogClose(IdDlgAddLeft);
      }else{
        zUtil.msg('保存失败');
        return false;
      }
    };
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgAddLeft);
    };
    var dlgOptions = {
       title: TitleLeft + '-新增',
    };
    var dlgButtonsIdx = [0,1];
    var dlgButtonsFunc =  [dlgSave,dlgClose];
    zUtil.dialogInit(IdDlgAddLeft,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);   
    zUtil.dialogOpen(IdDlgAddLeft);
  };
  //TODO  
  function dlgEditLeft(row){
    if($.isNumeric(row)){
      zUtil.tableSelected(IdTableLeft,row);
      row = zUtil.tableRows(IdTableLeft);
    }
    
    zUtil.formClear(IdDlgEditLeft + ' form');
    zUtil.readonlyAll(IdDlgEditLeft,false);
    zUtil.readonly(IdDlgEditLeft + ' #entityId');
    zUtil.readonly(IdDlgEditLeft + ' #projectId');
    zUtil.readonly(IdDlgEditLeft + ' #moduleId');
    zUtil.readonly(IdDlgEditLeft + ' #dataStatus');
    zUtil.readonly(IdDlgEditLeft + ' #createOprid');
    zUtil.readonly(IdDlgEditLeft + ' #createName');
    zUtil.readonly(IdDlgEditLeft + ' #createTm');
    zUtil.readonly(IdDlgEditLeft + ' #lastUpdOprid');
    zUtil.readonly(IdDlgEditLeft + ' #lastUpdName');
    zUtil.readonly(IdDlgEditLeft + ' #lastUpdTm');
    
    var params = {};
    params['entityId']  = row['entityId'];
    var detail = zUtil.ajaxGetSync(zGlobal["http"] + "/api/autocode/entity/detail", params);
    if(zCode["GLOBAL_SUCCESS"] != zUtil.getVal(detail,zConst["busCode"])){
      zUtil.msg('获取信息失败');
      return false;
    }
    detail = detail["resData"];
          
    var dlgSave = function(){
      if(!zUtil.formCheck(IdDlgEditLeft +' form')){
        return false;
      };
      var params = zUtil.valAll(IdDlgEditLeft);
      var reqData = {reqData: params};
      var result = zUtil.ajaxPostSync(zGlobal["http"] + "/api/autocode/entity/edit", reqData);
      if(zCode["GLOBAL_SUCCESS"] == zUtil.getVal(result,zConst["busCode"])){
        var params = zUtil.valAll(IdDlgQueryLeft);
        zUtil.tableQuery(IdTableLeft,params);
        zUtil.dialogClose(IdDlgEditLeft);
      }else{
        zUtil.msg('保存失败');
        return false;
      }
    };
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgEditLeft);
    };
    var dlgOptions = {
      title: TitleLeft + '-编辑',
    };
    var dlgButtonsIdx = [0,1];
    var dlgButtonsFunc =  [dlgSave,dlgClose];
    zUtil.dialogInit(IdDlgEditLeft,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);
    zUtil.valAll(IdDlgEditLeft,detail);
    zUtil.dialogOpen(IdDlgEditLeft);
  };
  //TODO
  function dlgDtlLeft(row){
    if($.isNumeric(row)){
      zUtil.tableSelected(IdTableLeft,row);
      row = zUtil.tableRows(IdTableLeft);
    }
    zUtil.formClear(IdDlgEditLeft + ' form');
    zUtil.readonlyAll(IdDlgEditLeft);
    
    var params = {};
    params['entityId']  = row['entityId'];
    var detail = zUtil.ajaxGetSync(zGlobal["http"] + "/api/autocode/entity/detail", params);
    if(zCode["GLOBAL_SUCCESS"] != zUtil.getVal(detail,zConst["busCode"])){
      zUtil.msg('获取信息失败');
      return false;
    }
    detail = detail["resData"];
          
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgEditLeft);
    };
    var dlgOptions = {
      title: TitleLeft + '-详情',
    };
    var dlgButtonsIdx = [1];
    var dlgButtonsFunc =  [dlgClose];
    zUtil.dialogInit(IdDlgEditLeft,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);
    zUtil.valAll(IdDlgEditLeft,detail);
    zUtil.dialogOpen(IdDlgEditLeft);
  };
  //TODO
  function dlgDelLeft(row){
    if($.isNumeric(row)){
      zUtil.tableSelected(IdTableLeft,row);
      row = zUtil.tableRows(IdTableLeft);
    }
    
    var params = {}; 
    params['entityId']  = row['entityId'];
    var reqData = {reqData: params};
    var okfunc = function(){
    var result = zUtil.ajaxPostSync(zGlobal["http"] + "/api/autocode/entity/del", reqData);
      if(zCode["GLOBAL_SUCCESS"] == zUtil.getVal(result,zConst["busCode"])){
        var params = zUtil.valAll(IdDlgQueryLeft);
        zUtil.tableQuery(IdTableLeft,params);
      }else{
        zUtil.msg('操作失败');
        return false;
      }
    }
    zUtil.msgConfirm("确认删除已选中记录?",okfunc);
  };

  /* --分割------------------------------------------------------------------------------ */
  //TODO
  function getTableLeft(){
      var rowLeft =  zUtil.tableRows(IdTableLeft);
      if(rowLeft == null || rowLeft.length == 0){
          zUtil.msg('未选择左侧数据');
          return null;
      }
      return rowLeft;
  }
  //TODO
  function buttonsFormatterRight(value,rowData,rowIndex){
    return '<a href="javascript:void(0)" class="easyui-linkbutton" onclick="dlgDelRight('+rowIndex+');" title="删除" ><i class="fa fa-trash"> </i></a>';
  }
  //TODO
  function dlgQueryRight(){
    var rowLeft = getTableLeft();
    if(rowLeft == null){
      return false;
    };
    zUtil.readonly(IdDlgQueryRight + ' #projectId');
    zUtil.readonly(IdDlgQueryRight + ' #moduleId');
    zUtil.readonly(IdDlgQueryRight + ' #entityId');
    
    var dlgSave = function(){
      var params = zUtil.valAll(IdDlgQueryRight);
      zUtil.tableQuery(IdTableRight,params);
    };
    var dlgClear = function(){
      zUtil.formClear(IdDlgQueryRight + ' form');
    };
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgQueryRight);
    };
    var dlgOptions = {
      title: TitleRight + '-查询',
    };
    var dlgButtonsIdx = [0,1,2];
    var dlgButtonsFunc =  [dlgSave,dlgClear,dlgClose];
    zUtil.queryInit(IdDlgQueryRight,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);
    zUtil.dialogOpen(IdDlgQueryRight);
  };
  //TODO
  function dlgQueryxRight(){
    //zUtil.dialogOpen(IdDlgQueryxRight);
  };
  //TODO
  function dlgAddRight(){
    var rowLeft = getTableLeft();
    if(rowLeft == null){
      return false;
    };
    
    zUtil.formClear(IdDlgAddRight + ' form');
    zUtil.readonlyAll(IdDlgAddRight,false);
    zUtil.val(IdDlgAddRight + ' #projectId',rowLeft['projectId'])
    zUtil.val(IdDlgAddRight + ' #moduleId',rowLeft['moduleId'])
    zUtil.val(IdDlgAddRight + ' #entityId',rowLeft['entityId'])
    zUtil.readonly(IdDlgAddRight + ' #projectId');
    zUtil.readonly(IdDlgAddRight + ' #moduleId');
    zUtil.readonly(IdDlgAddRight + ' #entityId');
    
    var dlgSave = function(){
      if(!zUtil.formCheck(IdDlgAddRight +' form')){
        return false;
      };
      var params = zUtil.valAll(IdDlgAddRight);
      var reqData = {reqData: params};
      var result = zUtil.ajaxPostSync(zGlobal["http"] + "/api/autocode/entityAttr/add", reqData);
      if(zCode["GLOBAL_SUCCESS"] == zUtil.getVal(result,zConst["busCode"])){
        var params = zUtil.valAll(IdDlgQueryRight);
        zUtil.tableQuery(IdTableRight,params);
        zUtil.dialogClose(IdDlgAddRight);
      }else{
        zUtil.msg('保存失败');
        return false;
      }
    };
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgAddRight);
    };
    var dlgOptions = {
       title: TitleRight + '-新增',
    };
    var dlgButtonsIdx = [0,1];
    var dlgButtonsFunc =  [dlgSave,dlgClose];
    zUtil.dialogInit(IdDlgAddRight,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);   
    zUtil.dialogOpen(IdDlgAddRight);
  };
  //TODO  
  function dlgEditRight(row){
    if($.isNumeric(row)){
      zUtil.tableSelected(IdTableRight,row);
      row = zUtil.tableRows(IdTableRight);
    }
    zUtil.formClear(IdDlgEditRight + ' form');
    zUtil.readonlyAll(IdDlgEditRight,false);
    zUtil.readonly(IdDlgEditRight + ' #entityAttrId');
    zUtil.readonly(IdDlgEditRight + ' #projectId');
    zUtil.readonly(IdDlgEditRight + ' #moduleId');
    zUtil.readonly(IdDlgEditRight + ' #entityId');
    zUtil.readonly(IdDlgEditRight + ' #dataStatus');
    zUtil.readonly(IdDlgEditRight + ' #createOprid');
    zUtil.readonly(IdDlgEditRight + ' #createName');
    zUtil.readonly(IdDlgEditRight + ' #createTm');
    zUtil.readonly(IdDlgEditRight + ' #lastUpdOprid');
    zUtil.readonly(IdDlgEditRight + ' #lastUpdName');
    zUtil.readonly(IdDlgEditRight + ' #lastUpdTm');
    
    var params = {};
    params['entityAttrId']  = row['entityAttrId'];
    var detail = zUtil.ajaxGetSync(zGlobal["http"] + "/api/autocode/entityAttr/detail", params);
    if(zCode["GLOBAL_SUCCESS"] != zUtil.getVal(detail,zConst["busCode"])){
      zUtil.msg('获取信息失败');
      return false;
    }
    detail = detail["resData"];
          
    var dlgSave = function(){
      if(!zUtil.formCheck(IdDlgEditRight +' form')){
        return false;
      };
      var params = zUtil.valAll(IdDlgEditRight);
      var reqData = {reqData: params};
      var result = zUtil.ajaxPostSync(zGlobal["http"] + "/api/autocode/entityAttr/edit", reqData);
      if(zCode["GLOBAL_SUCCESS"] == zUtil.getVal(result,zConst["busCode"])){
        var params = zUtil.valAll(IdDlgQueryRight);
        zUtil.tableQuery(IdTableRight,params);
        zUtil.dialogClose(IdDlgEditRight);
      }else{
        zUtil.msg('保存失败');
        return false;
      }
    };
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgEditRight);
    };
    var dlgOptions = {
      title: TitleRight + '-编辑',
    };
    var dlgButtonsIdx = [0,1];
    var dlgButtonsFunc =  [dlgSave,dlgClose];
    zUtil.dialogInit(IdDlgEditRight,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);
    zUtil.valAll(IdDlgEditRight,detail);
    zUtil.dialogOpen(IdDlgEditRight);
  };
  //TODO
  function dlgDtlRight(row){
    if($.isNumeric(row)){
      zUtil.tableSelected(IdTableRight,row);
      row = zUtil.tableRows(IdTableRight);
    }
    zUtil.formClear(IdDlgEditRight + ' form');
    zUtil.readonlyAll(IdDlgEditRight);
    
    var params = {};
    params['entityAttrId']  = row['entityAttrId'];
    var detail = zUtil.ajaxGetSync(zGlobal["http"] + "/api/autocode/entityAttr/detail", params);
    if(zCode["GLOBAL_SUCCESS"] != zUtil.getVal(detail,zConst["busCode"])){
      zUtil.msg('获取信息失败');
      return false;
    }
    detail = detail["resData"];
          
    var dlgClose = function(){
      zUtil.dialogClose(IdDlgEditRight);
    };
    var dlgOptions = {
      title: TitleRight + '-详情',
    };
    var dlgButtonsIdx = [1];
    var dlgButtonsFunc =  [dlgClose];
    zUtil.dialogInit(IdDlgEditRight,dlgOptions,dlgButtonsIdx,dlgButtonsFunc);
    zUtil.valAll(IdDlgEditRight,detail);
    zUtil.dialogOpen(IdDlgEditRight);
  };
  //TODO
  function dlgDelRight(row){
    if($.isNumeric(row)){
      zUtil.tableSelected(IdTableRight,row);
      row = zUtil.tableRows(IdTableRight);
    }
    
    var params = {}; 
    params['entityAttrId']  = row['entityAttrId'];
    var reqData = {reqData: params};
    var okfunc = function(){
      var result = zUtil.ajaxPostSync(zGlobal["http"] + "/api/autocode/entityAttr/del", reqData);
      if(zCode["GLOBAL_SUCCESS"] == zUtil.getVal(result,zConst["busCode"])){
        var params = zUtil.valAll(IdDlgQueryRight);
        zUtil.tableQuery(IdTableRight,params);
      }else{
        zUtil.msg('操作失败');
        return false;
      }
    }
    zUtil.msgConfirm("确认删除已选中记录?",okfunc);
  };
   
  </script>

</body>
</html>